home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.infosystems.www.authoring.cgi,comp.lang.c
- Path: istar.net!infoshare!whome!gts!westonia!ppp-104
- From: Rob.Ross@smtp.ajaxshuttle.com (Rob Ross)
- Subject: Re: data transfer using POST method
- X-Nntp-Posting-Host: ppp-104.ppp.westonia.com
- Message-ID: <DLIn76.DpG@westonia.com>
- Sender: news@westonia.com
- Organization: TAS Online Services
- X-Newsreader: News Xpress Version 1.0 Beta #4
- References: <4dpi1p$s7@driene.student.utwente.nl>
- Date: Sun, 21 Jan 1996 05:25:56 GMT
-
- In article <4dpi1p$s7@driene.student.utwente.nl>,
- d.hornstra@student.utwente.nl (Daniel Hornstra) wrote:
- >I'm trying to send a long text (from a textarea box) to my cgi-binary. First
- i
- >tried using the GET method, but soon i found out that a windows-environment
- >entry cannot be longer than 256 characters. So i now try using the POST
- method,
- >but i don't know how the data is exchanged between the server and the
- cgi-bin.
- >
- >There is a CONTENT_FILE entry containing the input, and it's put in my \temp\
- >dir. But when i try to read this temporary file from within my program, the
- >file does not exist. Can anyone help me out on this? It's pretty basic i
- >guess... I use pascal to write the program, so an example in this language on
- >how it should receive the data would be great!
-
- With the POST method, the data is sent to the CGI program via STDIN. You may
- read the data as you would from the standard input.
-
- I am having a problem myself relating to this. I am writing a CGI that
- handles large form data, so I am using the POST method. My CGI is being
- written in C and being compiled by Turbo C++ 3.0 for DOS. My main problem is
- that whenever I read from STDIN, my program waits for the ENTER key to be
- pressed before it processes the information read from STDIN via fread,
- fgetchar, or fgetc. I do not want to use the CONIO.H lib as it isn't ANSI C
- specific. Does anyone have any suggestions as to how I can avoid the required
- ENTER keypress with the above listed functions?
-
- Thanks,
-
- Rob
-
-